package com.dong.agent.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.dong.agent.exception.BaseResponse;
import com.dong.agent.exception.ResultUtils;

/**
 * 健康检测接口
 */
@RestController
@RequestMapping("/")
public class HealthController {

//    @GetMapping
//    public String healthCheck() {
//        return "ok";
//    }

    @GetMapping("/health")
    public BaseResponse<String> health() {
        return ResultUtils.success("ok");
    }

}

